package com.sky.dto;

import com.sky.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@ApiModel(value = "DishDTO", description = "菜品传输对象")
@Data
public class DishDTO implements Serializable {

    private Long id;
    //菜品名称
    @ApiModelProperty(value = "菜品名称", required = true,example = "菜花")
    private String name;
    //菜品分类id
    @ApiModelProperty(value = "菜品分类id", required = true,example = "1")
    private Long categoryId;
    //菜品价格
    @ApiModelProperty(value = "菜品价格", required = true,example = "12.00")
    private BigDecimal price;
    //图片
    @ApiModelProperty(value = "菜品图片", required = true,example = "www.baidu.com")
    private String image;
    //描述信息
    @ApiModelProperty(value = "菜品描述信息", required = false,example = "好吃")
    private String description;
    //0 停售 1 起售
    @ApiModelProperty(value = "菜品状态",example = "1")
    private Integer status;
    //口味
    @ApiModelProperty(value = "菜品口味", required = false,example = "")
    private List<DishFlavor> flavors = new ArrayList<>();

}
